package cn.mayday.designmode.Decorator;

/**
 * @author Mayday05
 * @date 2021/1/4 20:11
 */
public abstract class ShapeDecorator implements IShape {

    protected IShape decoratedShape;

    public ShapeDecorator(IShape decoratedShape) {
        this.decoratedShape = decoratedShape;
    }

    public void draw() {
        decoratedShape.draw();
    }

}
